import{isString as e,isNumber as r,isArray as i}from"lodash-unified";import{consoleWarn as n}from"../console/index.mjs";const t=(i,t="px")=>{return i?r(i)||e(o=i)&&!Number.isNaN(Number(o))?`${i}${t}`:e(i)?i:void n("document","binding value must be a string or number"):"";var o},o=r=>r?i(r)?r.filter(e=>e&&e?.length>0).map(e=>o(e)).join(" "):e(r)?r.trimEnd().endsWith(";")?r.trimEnd():`${r.trimEnd()};`:Object.entries(r).filter(([e,r])=>null!==r&&""!==r).map(([e,r])=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}:${r};`).join(" "):"";export{t as addUnit,o as styleToString};
//# sourceMappingURL=style.mjs.map
